// 专题分类列表
export const subjectList = (params) => uni.$u.http.post("/api/subjects/list", params)

// 添加专题分类
export const addGroup = (params) => uni.$u.http.post("/api/subjects/add_group", params)

// 修改专题分类
export const editGroup = (params) => uni.$u.http.post("/api/subjects/edit_group", params)

// 删除专题分类
export const delGroup = (params) => uni.$u.http.post("/api/subjects/del", params)

// 新建专题
export const addSubject = (params) => uni.$u.http.post("/api/subjects/add", params)

// 修改专题
export const editSubject = (params) => uni.$u.http.post("/api/subjects/edit", params)

// 专题详情
export const subjectDetail = (params) => uni.$u.http.post("/api/subjects/detail", params)

// 删除专题
export const delSubject = (params) => uni.$u.http.post("/api/subjects/del", params)

// 专题文章列表
export const articleList = (params) => uni.$u.http.post("/api/subject/list", params)

// 加入预警
export const addAlert = (params) => uni.$u.http.post("/api/subject/add_alert", params)

// 标记已读
export const toRead = (params) => uni.$u.http.post("/api/subject/read", params)

// 修改文章倾向性
export const sentimentAttr = (params) => uni.$u.http.post("/api/subject/sentiment_attr", params)

// 包含文章的专题列表
export const subjectIncluded = (params) => uni.$u.http.post("/api/subject/included", params)

// 删除文章
export const articleDel = (params) => uni.$u.http.post("/api/subject/del", params)

// 启动/暂停 专题更新
export const subjectCateOperate = (params) => uni.$u.http.post("/api/subjects/operate", params)

// 专题文章详情
export const articleDetail = (params) => uni.$u.http.post("/api/subject/detail", params)

// 搜索文章详情
export const searchArticleDetail = (params) => uni.$u.http.post("/api/article/detail", params)

// 已保存的筛选条件
export const alias = (params) => uni.$u.http.post("/api/subject/alias", params)

// 删除已保存的筛选条件
export const delAlias = (params) => uni.$u.http.post("/api/subject/alias_del", params)

// 文章媒体统计
export const mediaCount = (params) => uni.$u.http.post("/api/subject/media_count", params)

// 相似文章列表
export const articleSimilar = (params) => uni.$u.http.post("/api/subject/similar", params)




// 专题统计-倾向性趋势
export const trend = (params) => uni.$u.http.post("/api/subject/trend", params)

// 专题统计-媒体分布
export const media = (params) => uni.$u.http.post("/api/subject/media", params)

// 专题统计-媒体发展趋势
export const mediaTrend = (params) => uni.$u.http.post("/api/subject/media_trend", params)

// 专题统计-地域统计
export const region = (params) => uni.$u.http.post("/api/subject/region", params)

// 专题统计-活跃媒体
export const activeMedia = (params) => uni.$u.http.post("/api/subject/active_media", params)

// 专题统计-活跃作者
export const activeAuthor = (params) => uni.$u.http.post("/api/subject/active_author", params)



// 热点合集
export const hotRank = (params) => uni.$u.http.post("/api/article/hot_rank", params)
// 站内搜索
export const articleSearch = (params) => uni.$u.http.post("/api/article/search", params)


// h5文章详情
export const webArticleDetail = (params) => uni.$u.http.post("/api/web/article_detail", params)

// 专题通用配置详情
export const commonDetail = (params) => uni.$u.http.post("/api/subjects/common_detail", params)

// 专题通用配置保存
export const commonSave = (params) => uni.$u.http.post("/api/subjects/common", params)

// 文章所涉及的所有专题
export const articleSubjects = (params) => uni.$u.http.post("/api/subject/article_subjects", params)

// 文章详情添加排除词
export const addExcludeWord = (params) => uni.$u.http.post("/api/subject/add_exclude_word", params)

// 标签列表
export const warnTagList = (params) => uni.$u.http.post("/api/system/tag_list", params)

// h5文章详情（无鉴权）
export const webArticleDetailOpen = (params) => uni.$u.http.post("/api/web/article", params)